package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.Vo.SpecialResourceDatasVo;
import com.indexingsystem.boss.entity.SpecialResourceDatas;

public interface ISpecialResourceDatasService {

	int insert(SpecialResourceDatas record) throws Exception;

	int insertSelective(SpecialResourceDatas record) throws Exception;

	/**
	 * 批量新增资源终端关系.
	 * 
	 * @param list
	 * @return
	 */
	int batchAddSpecialResourceDatas(List<SpecialResourceDatas> list) throws Exception;

	/**
	 * 批量修改资源终端关系.
	 * 
	 * @param list
	 * @return
	 */
	int batchUpdateSpecialResourceDatas(List<SpecialResourceDatas> list) throws Exception;

	/**
	 * 通过资源id批量删除终端资源关系.
	 * 
	 * @param list
	 * @return
	 */
	int deleteSpecialResourceDatasByIdBatch(List<String> list) throws Exception;

	/**
	 * 通过主键查询详细信息
	 * 
	 * @param resId
	 * @return
	 */
	SpecialResourceDatas selectByPrimaryKey(String resId);

	/**
	 * 通过resid获取资源终端关系列表.
	 * 
	 * @param resId
	 * @return
	 */
	List<SpecialResourceDatasVo> getSpecialResourceDataByResId(String resId);
	
	/**
	 * 通过resid获取资源终端关系列表.
	 * 
	 * @param resId
	 * @return
	 */
	List<SpecialResourceDatas> getSpecialResourceDataListByResId(String resId);

	/**
	 * 通过主键删除终端资源关系表
	 * 
	 * @param resId
	 * @return
	 */
	int deleteByPrimaryKey(String resId) throws Exception;

	SpecialResourceDatas selectByQuerySpecialResDatas(SpecialResourceDatas querySpecialResDatas);
}